<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>TouchEvent - Go2d</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="icon" href="../assets/favicon.ico">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
                <h1><img src="../assets/css/logo.png" title="Go2d" width="117" height="52"></h1>
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: 1.6.7</em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
                    <h2 class="off-left">APIs</h2>
                    <div id="api-tabview" class="tabview">
                        <ul class="tabs">
                            <li><a href="#api-classes">Classes</a></li>
                            <li><a href="#api-modules">Modules</a></li>
                        </ul>
                
                        <div id="api-tabview-filter">
                            <input type="search" id="api-filter" placeholder="Type to filter APIs">
                        </div>
                
                        <div id="api-tabview-panel">
                            <ul id="api-classes" class="apis classes">
                                <li><a href="../classes/Class.html">Class</a></li>
                                <li><a href="../classes/Director.html">Director</a></li>
                                <li><a href="../classes/DisplayObject.html">DisplayObject</a></li>
                                <li><a href="../classes/Ease.html">Ease</a></li>
                                <li><a href="../classes/Event.html">Event</a></li>
                                <li><a href="../classes/EventEmitter.html">EventEmitter</a></li>
                                <li><a href="../classes/go2d.html">go2d</a></li>
                                <li><a href="../classes/ImageView.html">ImageView</a></li>
                                <li><a href="../classes/Matrix.html">Matrix</a></li>
                                <li><a href="../classes/ObjectPool.html">ObjectPool</a></li>
                                <li><a href="../classes/ResizeEvent.html">ResizeEvent</a></li>
                                <li><a href="../classes/ResourceLoader.html">ResourceLoader</a></li>
                                <li><a href="../classes/ScrollEvent.html">ScrollEvent</a></li>
                                <li><a href="../classes/ScrollView.html">ScrollView</a></li>
                                <li><a href="../classes/Sprite.html">Sprite</a></li>
                                <li><a href="../classes/Stage.html">Stage</a></li>
                                <li><a href="../classes/TextField.html">TextField</a></li>
                                <li><a href="../classes/TouchEvent.html">TouchEvent</a></li>
                                <li><a href="../classes/Tween.html">Tween</a></li>
                                <li><a href="../classes/URLRequest.html">URLRequest</a></li>
                                <li><a href="../classes/Vector.html">Vector</a></li>
                            </ul>
                
                            <ul id="api-modules" class="apis modules">
                                <li><a href="../modules/go2d.html">go2d</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
                    Show:
                    <label for="api-show-inherited">
                        <input type="checkbox" id="api-show-inherited" checked>
                        Inherited
                    </label>
            
                    <label for="api-show-protected">
                        <input type="checkbox" id="api-show-protected">
                        Protected
                    </label>
            
                    <label for="api-show-private">
                        <input type="checkbox" id="api-show-private">
                        Private
                    </label>
                    <label for="api-show-deprecated">
                        <input type="checkbox" id="api-show-deprecated">
                        Deprecated
                    </label>
            
                </div>
            
            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
<h1>TouchEvent Class</h1>
<div class="box meta">

        <div class="extends">
            Extends <a href="../classes/Event.html" class="crosslink">Event</a>
        </div>

        <div class="foundat">
            Defined in: <a href="../files/src_event_TouchEvent.js.html#l1"><code>src\event\TouchEvent.js:1</code></a>
        </div>

            Module: <a href="../modules/go2d.html">go2d</a>

</div>


<div class="box intro">
    <p>触摸事件类</p>

</div>

    <div class="constructor">
        <h2>Constructor</h2>
        <div id="method_TouchEvent" class="method item">
            <h3 class="name"><code>TouchEvent</code></h3>
        
                <div class="args">
                    <span class="paren">(</span><ul class="args-list inline commas">
                        <li class="arg">
                                <code>type</code>
                        </li>
                        <li class="arg">
                                <code>x</code>
                        </li>
                        <li class="arg">
                                <code>y</code>
                        </li>
                        <li class="arg">
                                <code>localX</code>
                        </li>
                        <li class="arg">
                                <code>localY</code>
                        </li>
                        <li class="arg">
                                <code>stageX</code>
                        </li>
                        <li class="arg">
                                <code>stageY</code>
                        </li>
                        <li class="arg">
                                <code>globalX</code>
                        </li>
                        <li class="arg">
                                <code>globalY</code>
                        </li>
                        <li class="arg">
                                <code>identifier</code>
                        </li>
                    </ul><span class="paren">)</span>
                </div>
        
        
        
        
        
        
        
        
            <div class="meta">
                        <p>
                        Defined in
                <a href="../files/src_event_TouchEvent.js.html#l1"><code>src\event\TouchEvent.js:1</code></a>
                </p>
        
        
        
            </div>
        
            <div class="description">
                
            </div>
        
                <div class="params">
                    <h4>Parameters:</h4>
        
                    <ul class="params-list">
                        <li class="param">
                                <code class="param-name">type</code>
                                <span class="type">String</span>
        
        
                            <div class="param-description">
                                <p>事件类型</p>
        
                            </div>
        
                        </li>
                        <li class="param">
                                <code class="param-name">x</code>
                                <span class="type">Number</span>
        
        
                            <div class="param-description">
                                <p>事件水平坐标</p>
        
                            </div>
        
                        </li>
                        <li class="param">
                                <code class="param-name">y</code>
                                <span class="type">Number</span>
        
        
                            <div class="param-description">
                                <p>事件垂直坐标</p>
        
                            </div>
        
                        </li>
                        <li class="param">
                                <code class="param-name">localX</code>
                                <span class="type">Number</span>
        
        
                            <div class="param-description">
                                <p>事件绝对水平坐标（忽略锚点）</p>
        
                            </div>
        
                        </li>
                        <li class="param">
                                <code class="param-name">localY</code>
                                <span class="type">Number</span>
        
        
                            <div class="param-description">
                                <p>事件绝对垂直坐标（忽略锚点）</p>
        
                            </div>
        
                        </li>
                        <li class="param">
                                <code class="param-name">stageX</code>
                                <span class="type">Number</span>
        
        
                            <div class="param-description">
                                <p>全局水平坐标</p>
        
                            </div>
        
                        </li>
                        <li class="param">
                                <code class="param-name">stageY</code>
                                <span class="type">Number</span>
        
        
                            <div class="param-description">
                                <p>全局垂直坐标</p>
        
                            </div>
        
                        </li>
                        <li class="param">
                                <code class="param-name">globalX</code>
                                <span class="type">Number</span>
        
        
                            <div class="param-description">
                                <p>全局绝对水平坐标（忽略锚点）</p>
        
                            </div>
        
                        </li>
                        <li class="param">
                                <code class="param-name">globalY</code>
                                <span class="type">Number</span>
        
        
                            <div class="param-description">
                                <p>全局绝对垂直坐标（忽略锚点）</p>
        
                            </div>
        
                        </li>
                        <li class="param">
                                <code class="param-name">identifier</code>
                                <span class="type">Number</span>
        
        
                            <div class="param-description">
                                <p>触摸对象唯一标识，用于多点触摸识别</p>
        
                            </div>
        
                        </li>
                    </ul>
                </div>
        
        
        
        </div>
    </div>

<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods extends">
                            <li class="index-item method inherited">
                                <a href="#method_isDefaultPrevented">isDefaultPrevented</a>

                            </li>
                            <li class="index-item method inherited">
                                <a href="#method_isPropagationStopped">isPropagationStopped</a>

                            </li>
                            <li class="index-item method inherited">
                                <a href="#method_preventDefault">preventDefault</a>

                            </li>
                            <li class="index-item method inherited">
                                <a href="#method_stopPropagation">stopPropagation</a>

                            </li>
                    </ul>
                </div>

                <div class="index-section properties">
                    <h3>Properties</h3>

                    <ul class="index-list properties extends">
                            <li class="index-item property protected inherited">
                                <a href="#property__defaultPrevented">_defaultPrevented</a>

                            </li>
                            <li class="index-item property protected inherited">
                                <a href="#property__propagationStopped">_propagationStopped</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_globalX">globalX</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_globalY">globalY</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_identifier">identifier</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_localX">localX</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_localY">localY</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_stageX">stageX</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_stageY">stageY</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_TOUCH_END">TOUCH_END</a>

                                    <span class="flag static">static</span>
                            </li>
                            <li class="index-item property">
                                <a href="#property_TOUCH_MOVE">TOUCH_MOVE</a>

                                    <span class="flag static">static</span>
                            </li>
                            <li class="index-item property">
                                <a href="#property_TOUCH_START">TOUCH_START</a>

                                    <span class="flag static">static</span>
                            </li>
                            <li class="index-item property">
                                <a href="#property_TOUCH_TAP">TOUCH_TAP</a>

                                    <span class="flag static">static</span>
                            </li>
                            <li class="index-item property inherited">
                                <a href="#property_type">type</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_x">x</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_y">y</a>

                            </li>
                    </ul>
                </div>


        </div>

            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

<div id="method_isDefaultPrevented" class="method item inherited">
    <h3 class="name"><code>isDefaultPrevented</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>







    <div class="meta">
                <p>Inherited from
                <a href="../classes/Event.html#method_isDefaultPrevented">Event</a>:
        <a href="../files/src_event_Event.js.html#l66"><code>src\event\Event.js:66</code></a>
        </p>



    </div>

    <div class="description">
        <p>获取是否已阻止默认事件</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Boolean</span>:
            </div>
        </div>


</div>
<div id="method_isPropagationStopped" class="method item inherited">
    <h3 class="name"><code>isPropagationStopped</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>







    <div class="meta">
                <p>Inherited from
                <a href="../classes/Event.html#method_isPropagationStopped">Event</a>:
        <a href="../files/src_event_Event.js.html#l49"><code>src\event\Event.js:49</code></a>
        </p>



    </div>

    <div class="description">
        <p>获取是否已停止冒泡</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Boolean</span>:
            </div>
        </div>


</div>
<div id="method_preventDefault" class="method item inherited">
    <h3 class="name"><code>preventDefault</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>Inherited from
                <a href="../classes/Event.html#method_preventDefault">Event</a>:
        <a href="../files/src_event_Event.js.html#l57"><code>src\event\Event.js:57</code></a>
        </p>



    </div>

    <div class="description">
        <p>阻止默认事件</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_stopPropagation" class="method item inherited">
    <h3 class="name"><code>stopPropagation</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>Inherited from
                <a href="../classes/Event.html#method_stopPropagation">Event</a>:
        <a href="../files/src_event_Event.js.html#l40"><code>src\event\Event.js:40</code></a>
        </p>



    </div>

    <div class="description">
        <p>停止冒泡</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
            </div>

            <div id="properties" class="api-class-tabpanel">
                <h2 class="off-left">Properties</h2>

                    <div id="property__defaultPrevented" class="property item protected inherited">
                        <h3 class="name"><code>_defaultPrevented</code></h3>
                        <span class="type">Boolean</span>
                    
                    
                            <span class="flag protected">protected</span>
                    
                    
                    
                        <div class="meta">
                                    <p>Inherited from
                                    <a href="../classes/Event.html#property__defaultPrevented">Event</a>:
                            <a href="../files/src_event_Event.js.html#l32"><code>src\event\Event.js:32</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>是否已阻止默认事件</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property__propagationStopped" class="property item protected inherited">
                        <h3 class="name"><code>_propagationStopped</code></h3>
                        <span class="type">Boolean</span>
                    
                    
                            <span class="flag protected">protected</span>
                    
                    
                    
                        <div class="meta">
                                    <p>Inherited from
                                    <a href="../classes/Event.html#property__propagationStopped">Event</a>:
                            <a href="../files/src_event_Event.js.html#l24"><code>src\event\Event.js:24</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>是否已停止冒泡</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_globalX" class="property item">
                        <h3 class="name"><code>globalX</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l65"><code>src\event\TouchEvent.js:65</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>全局绝对水平坐标（忽略锚点）</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_globalY" class="property item">
                        <h3 class="name"><code>globalY</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l72"><code>src\event\TouchEvent.js:72</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>全局绝对垂直坐标（忽略锚点）</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_identifier" class="property item">
                        <h3 class="name"><code>identifier</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l79"><code>src\event\TouchEvent.js:79</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸对象唯一标识，用于多点触摸识别</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_localX" class="property item">
                        <h3 class="name"><code>localX</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l37"><code>src\event\TouchEvent.js:37</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>事件绝对水平坐标（忽略锚点）</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_localY" class="property item">
                        <h3 class="name"><code>localY</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l44"><code>src\event\TouchEvent.js:44</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>事件绝对垂直坐标（忽略锚点）</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_stageX" class="property item">
                        <h3 class="name"><code>stageX</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l51"><code>src\event\TouchEvent.js:51</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>全局水平坐标</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_stageY" class="property item">
                        <h3 class="name"><code>stageY</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l58"><code>src\event\TouchEvent.js:58</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>全局垂直坐标</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_TOUCH_END" class="property item">
                        <h3 class="name"><code>TOUCH_END</code></h3>
                        <span class="type">String</span>
                    
                    
                    
                            <span class="flag final">final</span>
                    
                            <span class="flag static">static</span>
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l106"><code>src\event\TouchEvent.js:106</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸结束事件</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> touchend</p>
                    
                    
                    </div>
                    <div id="property_TOUCH_MOVE" class="property item">
                        <h3 class="name"><code>TOUCH_MOVE</code></h3>
                        <span class="type">String</span>
                    
                    
                    
                            <span class="flag final">final</span>
                    
                            <span class="flag static">static</span>
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l97"><code>src\event\TouchEvent.js:97</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸移动事件</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> touchmove</p>
                    
                    
                    </div>
                    <div id="property_TOUCH_START" class="property item">
                        <h3 class="name"><code>TOUCH_START</code></h3>
                        <span class="type">String</span>
                    
                    
                    
                            <span class="flag final">final</span>
                    
                            <span class="flag static">static</span>
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l88"><code>src\event\TouchEvent.js:88</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸开始事件</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> touchstart</p>
                    
                    
                    </div>
                    <div id="property_TOUCH_TAP" class="property item">
                        <h3 class="name"><code>TOUCH_TAP</code></h3>
                        <span class="type">String</span>
                    
                    
                    
                            <span class="flag final">final</span>
                    
                            <span class="flag static">static</span>
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l115"><code>src\event\TouchEvent.js:115</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸点击事件</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> touchtap</p>
                    
                    
                    </div>
                    <div id="property_type" class="property item inherited">
                        <h3 class="name"><code>type</code></h3>
                        <span class="type">String</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>Inherited from
                                    <a href="../classes/Event.html#property_type">Event</a>:
                            <a href="../files/src_event_Event.js.html#l17"><code>src\event\Event.js:17</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>事件类型</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_x" class="property item">
                        <h3 class="name"><code>x</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l23"><code>src\event\TouchEvent.js:23</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>事件水平坐标</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_y" class="property item">
                        <h3 class="name"><code>y</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_event_TouchEvent.js.html#l30"><code>src\event\TouchEvent.js:30</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>事件垂直坐标</p>
                    
                        </div>
                    
                    
                    
                    </div>
            </div>


    </div>
</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
